<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: CNullCryptoEngine Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">CNullCryptoEngine Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="CNullCryptoEngine" --><!-- doxytag: inherits="CCryptoEngine" -->
<p><code>#include &lt;<a class="el" href="null__crypto__engine_8h_source.html">null_crypto_engine.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for CNullCryptoEngine:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classCNullCryptoEngine.png" usemap="#CNullCryptoEngine_map" alt=""/>
  <map id="CNullCryptoEngine_map" name="CNullCryptoEngine_map">
<area href="classCCryptoEngine.html" title="Implementation of a crypto engine." alt="CCryptoEngine" shape="rect" coords="0,56,120,80"/>
<area href="classIEmbeddingEngine.html" title="Embedding engine base class." alt="IEmbeddingEngine" shape="rect" coords="0,0,120,24"/>
</map>
 </div></div>

<p><a href="classCNullCryptoEngine-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCNullCryptoEngine.html#a750bca1f4ef5c800bf7646dfb8139864">CNullCryptoEngine</a> (<a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> ioStreamInfo)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCNullCryptoEngine.html#aa274e0edd8cf3dd5e5b6685e31d8c692">~CNullCryptoEngine</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCNullCryptoEngine.html#acfe250e7194f1322f30b99b7ac505a5e">encrypt</a> (double *pData, unsigned int pCount)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCNullCryptoEngine.html#a903d791c225f475c02ce2532b5d7324e">decrypt</a> (double *pData, unsigned int pCount)</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCNullCryptoEngine.html#aeae9b7fbed7186ccd34a533ccd03f0e6">changeSettings</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCNullCryptoEngine.html#a1e5047141977b61d0acc62b7db04d593">mScale</a></td></tr>
<tr><td colspan="2"><h2><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCNullCryptoEngine.html#a769c429a213aeabdccab36f2f70681ca">sIniSectionName</a></td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a750bca1f4ef5c800bf7646dfb8139864"></a><!-- doxytag: member="CNullCryptoEngine::CNullCryptoEngine" ref="a750bca1f4ef5c800bf7646dfb8139864" args="(NAudioFormats::SStreamInfo ioStreamInfo)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CNullCryptoEngine::CNullCryptoEngine </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a>&#160;</td>
          <td class="paramname"><em>ioStreamInfo</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aa274e0edd8cf3dd5e5b6685e31d8c692"></a><!-- doxytag: member="CNullCryptoEngine::~CNullCryptoEngine" ref="aa274e0edd8cf3dd5e5b6685e31d8c692" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CNullCryptoEngine::~CNullCryptoEngine </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aeae9b7fbed7186ccd34a533ccd03f0e6"></a><!-- doxytag: member="CNullCryptoEngine::changeSettings" ref="aeae9b7fbed7186ccd34a533ccd03f0e6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CNullCryptoEngine::changeSettings </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>called by the protocol engine upon settings change (e.g. change of embedding parameters) calls setProperties and initCrypto if this method gets overwritten, the subclass should call setProperties and initCrypto </p>

<p>Reimplemented from <a class="el" href="classCCryptoEngine.html#ae509c020577b0be6b45f63a78304314f">CCryptoEngine</a>.</p>

</div>
</div>
<a class="anchor" id="a903d791c225f475c02ce2532b5d7324e"></a><!-- doxytag: member="CNullCryptoEngine::decrypt" ref="a903d791c225f475c02ce2532b5d7324e" args="(double *pData, unsigned int pCount)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CNullCryptoEngine::decrypt </td>
          <td>(</td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>pData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>abstract method decrypt decrypt pCount bytes from data and write them back to data if not enough data is available for decryption, zeros should be written to the data buffer </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>double array with amplitude values from 0 to 1 </td></tr>
    <tr><td class="paramname">pCount</td><td>count of audio samples to work with </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 for success, &gt;0 for success and discard of samples for next call, &lt;0 for an error </dd></dl>

<p>Implements <a class="el" href="classCCryptoEngine.html#a3405f0d5fc53cce53f35e2ee03cfb95e">CCryptoEngine</a>.</p>

</div>
</div>
<a class="anchor" id="acfe250e7194f1322f30b99b7ac505a5e"></a><!-- doxytag: member="CNullCryptoEngine::encrypt" ref="acfe250e7194f1322f30b99b7ac505a5e" args="(double *pData, unsigned int pCount)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CNullCryptoEngine::encrypt </td>
          <td>(</td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>pData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>abstract method encrypt encrypt pCount bytes from data and write them back to data if not enough data is available for encryption, zeros should be written to the data buffer </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>double array with amplitude values from 0 to 1 </td></tr>
    <tr><td class="paramname">pCount</td><td>count of audio samples to work with </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 for success, &gt;0 for success and discard of samples for next call, &lt;0 for an error </dd></dl>

<p>Implements <a class="el" href="classCCryptoEngine.html#a19175d4e3c5177453e1b7af2bb956bb8">CCryptoEngine</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a1e5047141977b61d0acc62b7db04d593"></a><!-- doxytag: member="CNullCryptoEngine::mScale" ref="a1e5047141977b61d0acc62b7db04d593" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classCNullCryptoEngine.html#a1e5047141977b61d0acc62b7db04d593">CNullCryptoEngine::mScale</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a769c429a213aeabdccab36f2f70681ca"></a><!-- doxytag: member="CNullCryptoEngine::sIniSectionName" ref="a769c429a213aeabdccab36f2f70681ca" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string <a class="el" href="classCNullCryptoEngine.html#a769c429a213aeabdccab36f2f70681ca">CNullCryptoEngine::sIniSectionName</a><code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classCCryptoEngine.html#a771dc5672c3690791e03d9492f4f2400">CCryptoEngine</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="null__crypto__engine_8h_source.html">null_crypto_engine.h</a></li>
<li><a class="el" href="null__crypto__engine_8cxx.html">null_crypto_engine.cxx</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:44 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
